package com.css.fxfzypg.modules.resultManagement.reportManagement.service;

import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.resultManagement.reportManagement.VO.FieldHistoryUploadReportVo;
import com.css.fxfzypg.modules.resultManagement.reportManagement.VO.FieldReportManagementVO;
import com.css.fxfzypg.modules.resultManagement.reportManagement.VO.ReportManagementVO;
import com.css.fxfzypg.modules.resultManagement.reportManagement.entity.FieldHistoryUploadReport;
import com.css.fxfzypg.modules.resultManagement.reportManagement.entity.FieldReportManagement;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author Dbj
 * @date 2022年12月08日  14:02
 */
public interface SamplingSurveyReportService2 {
    RestResponse createReport(String taskCode, String taskName, String modelName,String attachId, HttpServletResponse response) throws Exception;

    Map<String, Object> getPage(ReportManagementVO vo, int curPage, int pageSize);

    RestResponse uploadReport(MultipartFile file, String taskId);

    FieldReportManagement getReportByTaskId(String taskId);

    void downloadReport(String reportId, String def, HttpServletResponse res);

    Map<String, Object> getHistoryReportByTaskId(String taskId, int curPage, int pageSize);

    void downloadHistoryReport(String reportId, HttpServletResponse res);

    List<FieldReportManagementVO> getFieldReport();

    Map<String, Object> getReportListByTaskId(String taskId, int curPage, int pageSize);

    FieldHistoryUploadReport getHistoryById(String xcdcReportId);
}
